<template>
  <div>
    {{ getWeek() }}
  </div>
</template>

<script setup>
import dayjs from 'dayjs'
import 'dayjs/locale/zh-cn'
dayjs.locale('zh-cn')

function getWeek() {
  var datas = dayjs().day()
  var week = ['日', '一', '二', '三', '四', '五', '六']
  return '星期' + week[datas]
}
</script>
